Remove the checks to see if the window is modally blocked. This doesn't
authorCody Russell <bratsche@gnome.org>
Fri, 22 Aug 2008 00:30:06 +0000 (00:30 +0000)
committerCody Russell <bratsche@src.gnome.org>
Fri, 22 Aug 2008 00:30:06 +0000 (00:30 +0000)
2008-08-21  Cody Russell  <bratsche@gnome.org>

        * gdk/win32/gdkevents-win32.c (doesnt_want_key): Remove the checks
        to see if the window is modally blocked.  This doesn't get us anything,
        and it confuses the search window in GtkTreeView (and potentially other
        utility windows in other apps).  (#520165)

svn path=/trunk/; revision=21180

ChangeLog
gdk/win32/gdkevents-win32.c

index a6a247483eb10b67877b605fde6a38a6e20c80f4..2013a35e53eb7ac440b373f923f11b6623e5e9ee 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-08-21  Cody Russell  <bratsche@gnome.org>
+
+       * gdk/win32/gdkevents-win32.c (doesnt_want_key): Remove the checks
+       to see if the window is modally blocked.  This doesn't get us anything,
+       and it confuses the search window in GtkTreeView (and potentially other
+       utility windows in other apps).  (#520165)
+
 2008-08-21  Michael Natterer  <mitch@imendio.com>
 
        * gtk/gtktreeview.c (gtk_tree_view_realize): small formatting fix.
index f4ee91750b7ed57f2e63decc7bde6b4fc44adf80..5fe71685a1ce91e95a75243391c4db430e9c07fd 100644 (file)
@@ -1773,10 +1773,6 @@ doesnt_want_key (gint mask,
 {
   GdkWindow *modal_current = _gdk_modal_current ();
   GdkWindow *window = (GdkWindow *) gdk_win32_handle_table_lookup ((GdkNativeWindow)msg->hwnd);
-  gboolean modally_blocked = modal_current != NULL ? gdk_window_get_toplevel (window) != modal_current : FALSE;
-
-  if (modally_blocked == TRUE)
-    return TRUE;
 
   return (((msg->message == WM_KEYUP || msg->message == WM_SYSKEYUP) &&
           !(mask & GDK_KEY_RELEASE_MASK)) ||